package controller;

import config.Interceptor.PassToken;
import org.springframework.data.redis.connection.RedisServerCommands;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.Mapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import service.impl.Shoplistserviceimpl;
import utils.CommonRetumType;

import javax.annotation.Resource;

@RestController
@RequestMapping("/shoplist")
public class ShoplistController {
    @Resource
    Shoplistserviceimpl shoplistserviceimpl;

    @GetMapping("/selece")
    @PassToken
    public CommonRetumType selecefind()
    {
        return CommonRetumType.create(shoplistserviceimpl.selectByPrimaryKey(1),"查询成功");
    }
}
